package com.yunhe.tianhe.rentcars.entity.permission;

import java.util.ArrayList;
import java.util.List;

public class Menu {
    private  long id;
    private String name;
    private String url;
    private List<Menu> submenus=new ArrayList<>();

    public Menu(long id, String name, String url) {
        this.id = id;
        this.name = name;
        this.url = url;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public List<Menu> getSubmenus() {
        return submenus;
    }

    public void setSubmenus(List<Menu> submenus) {
        this.submenus = submenus;
    }
}
